package com.Excepton;

public class Excepton01 {
    public static void main(String[] args) {
        try {
            int[] arr = null;
            extracted(arr);
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println("我最帅");

    }

    private static void extracted(int[] arr) {
        if (arr == null) {
            throw new NullPointerException();
        } else {
            for (int i = 0; i < arr.length; i++) {
                System.out.println(arr[i]);
            }
        }


    }
}
